﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SharePoint.Administration;

namespace ITSP.SharePoint.CacheRefresh.Interfaces
{
    public interface ICacheRefreshManager
    {
        /// <summary>
        /// Use to start the process of invalidating an item from the cache
        /// </summary>
        /// <param name="cacheKey"></param>
        /// <returns></returns>
        bool InvalidateCache(string cacheKey);

        /// <summary>
        /// This function causes all the timer jobs to be deleted and added again from the SharePoint list.
        /// </summary>
        /// <returns></returns>
        bool RebuildCacheTimerJobs();
    }
}
